package com.ylyq.ylxx.constants;

/**
 * @Description: 常量配置
 */
public class AccountConstant {

    /**
     * @Author xiaweichao
     * @Description //TODO 巨量模块相关 * @Date 18:39 2020/9/16
     * @Param
     * @return
     **/

    //成功码
    public static final Integer SUCCESS = 0;
    //成功码
    public static final Integer FAIL = -1;
    //巨量引擎的SECRET
    public static final String OCEANENGINE_SECRET = "44ab6a66dab726add2e447233140a92acb60cb05";
    //巨量引擎的appid
//    public static final Long OCEANENGINE_APPID = "1670727750393863";//沙箱环境
    public static final Long OCEANENGINE_APPID = 1670816140363789L;//正式
    //巨量环境地址
//    public static final String OCEANENGINE_URL = "https://test-ad.toutiao.com/open_api/";//沙箱环境
    public static final String OCEANENGINE_URL = "https://ad.oceanengine.com/open_api/";//正式环境

    //巨量引擎授权的回调地址，需要配置成和开发者平台中配置的一样
//    public static final String OAUTH_REDIRECT_URI =ouathPath;
    public static final String OAUTH_REDIRECT_URI = "/ylyq/oAuth/oAuthCallback";
    //巨量引擎授权地址
//    public static final String OAUTH_URL = "https://ad.oceanengine.com/openapi/audit/oauth.html?app_id=" + OCEANENGINE_APPID + "&state=#{state}&scope=#{scope}&redirect_uri=" + OAUTH_REDIRECT_URI;
//    public static final String OAUTH_URL = "https://ad.oceanengine.com/openapi/audit/oauth.html?app_id=" + OCEANENGINE_APPID + "&connect_redirect=1&redirect_uri=" + OAUTH_REDIRECT_URI;
//    public static final String OAUTH_URL = "https://ad.oceanengine.com/openapi/audit/oauth.html?app_id=" + OCEANENGINE_APPID + "&redirect_uri=#{REDIRECT_URI}";
    public static final String OAUTH_URL = "https://ad.oceanengine.com/openapi/audit/oauth.html?app_id=" + OCEANENGINE_APPID +"&state=#{state}&scope=%5B130%2C3%2C4%2C5%2C8%2C9%2C12%2C2%2C14%2C112%2C110%5D&material_auth=1&redirect_uri=#{REDIRECT_URI}&rid=1zkal6s4npf";
    //巨量获取access_token地址
    public static final String GETACCESS_TOKEN = AccountConstant.OCEANENGINE_URL+"oauth2/access_token/";

    //	巨量授权成功后，重定向的web地址
    public static final String CLIENT_URL = "/ylyq/index.html#";


    /**
     * @Author xiaweichao
     * @Description //TODO 鲁班模块相关 * @Date 18:39 2020/9/16
     * @Param
     * @return
     **/

    //鲁班授权的回调地址，需要配置成和开发者平台中配置的一样
    public static final String Jinritemai_APPKey = "6873021304149509639";//正式
    public static final String Jinritemai_SECRET = "49863742-3a8e-4adc-8aad-711b9af615c3";//正式
//    public static final String Jinritemai_SECRET = "977cbab9-5c59-4036-b198-e5937047b53e";//正式
//    public static final String OAUTH_REDIRECT_URI =ouathPath;
    public static final String OAUTH_REDIRECT_URI_Jinritemai = "/ylyq/JinritemaiOAuth/oAuthCallback";
    //鲁班授权地址
    //https://fxg.jinritemai.com/index.html#/ffa/open/applicationAuthorize?response_type=code&app_id=3409409348479354011&redirect_uri=https%3A%2F%2Fwww.baidu.com%3Fsss%3D12312312&state=123123
    public static final String OAUTH_URL_Jinritemai = "https://fxg.jinritemai.com/index.html#/ffa/open/applicationAuthorize?response_type=code&app_id=" + Jinritemai_APPKey +"&state=#{state}&redirect_uri=#{REDIRECT_URI}";
    //获取鲁班的access_token地址
    public static final String GET_ACCESS_TOKEN_Jinritemai = "https://openapi-fxg.jinritemai.com/oauth2/access_token?app_id="+ Jinritemai_APPKey +"&app_secret="+Jinritemai_SECRET+"&code=#{CODE}&grant_type=authorization_code";
    //获取鲁班的access_token地址
    public static final String Refresh_TOKEN_Jinritemai = "https://openapi-fxg.jinritemai.com/oauth2/refresh_token?app_id="+ Jinritemai_APPKey +"&app_secret="+Jinritemai_SECRET+"&grant_type=refresh_token&refresh_token=#{REFRESH_TOKEN}";
    //	巨量授权成功后，重定向的web地址
    public static final String CLIENT_URL_Jinritemai = "/ylyq/index.html#";

}
